// 把components中的所有组件都进行全局化注册
// 通过插件的方式
import Magnifier from './magnifier/index.vue'
import Sku from './XtxSku/index.vue'
import GoodsItem from '@/views/Home/components/GoodsItem.vue'

export const componentPlugin = {
    install (app) {
        // app.component('组件名字', 组件对象)
        app.component('XtxMagnifier', Magnifier)
        app.component('XtxSku', Sku)
        app.component('good', GoodsItem)
    }
}